<div class="home_box" id="customerInfoForm">
    <div style="display: none">
        <input id="fieldTcValue" type="hidden" name="fieldTcValue" underline="true"
               value="${customerInfo.fieldTc}"/>
        <input id="payservicenameValue" type="hidden" name="payservicenameValue" underline="true"
               value="${customerInfo.appointmentPayService}"/>
        <input id="consumAbilityValue" type="hidden" name="consumAbilityValue" underline="true"
               value="${customerInfo.consumAbility}"/>
        <input id="occupationValue" type="hidden" name="occupationValue" underline="true"
               value="${customerInfo.occupation}"/>
        <input type="hidden" id="oneChannelValue" value="${customerInfo.oneChannel}">
        <input type="hidden" id="twoChannelValue" value="${customerInfo.twoChannel}">
        <input type="hidden" id="thrChannelValue" value="${customerInfo.thrChannel}">
        <input type="hidden" id="oneMediumValue" value="${customerInfo.oneMedium}">
        <input type="hidden" id="twoMediumValue" value="${customerInfo.twoMedium}">
        <input type="hidden" id="thrMediumValue" value="${customerInfo.thrMedium}">
        <input type="hidden" id="reservationsId" value="${customerInfo.reservationsId}">
        <input type="hidden" id="ids" value="${customerInfo.id}">
    </div>
    <div class="clearfix">
        <div style="float: right;">
            <button style="background: #30add1;color: white;width: 96px;" class="btn" type="button"
                    onclick="addVisitedInfoDlg.getEditd()">编辑
            </button>
            <button style="background: #30add1;color: white;width: 96px;" class="btn" type="button" id="cancel"
                    onclick="addVisitedInfoDlg.close()">取消
            </button>
        </div>
    </div>
    <div style="padding: 10px;overflow: hidden;">
        <div class="col-sm-12" style="border-bottom: 1px solid #cccccc"><h4>个人信息</h4></div>
        <div class="col-sm-12">
            <ul class="ul_flex col-sm-8">
                <li>
                    <ul>
                        <li><span>病历号：</span><input type="text" class="modify"
                                                    id="medicalRecordNumber"
                                                    value="${customerInfo.medicalRecordNumber}"></li>
                        <li><span>姓名：</span><input class="modify" type="text" id="customerName"
                                                   value="${customerInfo.customerName}"></li>
                        <li><span>年龄：</span><input class="modify" type="text" id="customerAge"
                                                   value="${customerInfo.customerAge}"></li>
                        <li><span>电话：</span><input type="text" class="modify1" readonly="readonly" id="customerPhone"
                                                   value="${customerInfo.customerPhone}"></li>
                        <li><span>电话使用人：</span><input type="text" class="modify1" readonly="readonly" id="phoneSharShip"
                                                      value="${customerInfo.phoneSharShip}"></li>
                    </ul>
                </li>
                <li>
                    <ul>
                        <li><span>性别：</span><select style="border: none;-webkit-appearance: none;" id="select1" class="select_styles"
                                                    name="customerSex">
                            <option value="1">男</option>
                            <option value="2">女</option>
                        </select></li>
                        <li><span>状态：</span><input type="text" class="modify1" readonly="readonly" id="customerStatus"
                                                   value="${customerInfo.customerStatus}"></li>
                        <li><span>QQ号：</span><input class="modify" type="text" id="qqNumber"
                                                    value="${customerInfo.qqNumber}"></li>
                        <li><span>微信号：</span><input class="modify" type="text" id="wechatNumber"
                                                    value="${customerInfo.wechatNumber}"></li>
                        <li><span>地址：</span><input class="modify" type="text" id="address"
                                                    value="${customerInfo.address}"></li>
                    </ul>
                </li>
            </ul>
            <div class="col-sm-4"></div>
        </div>
    </div>
    <div style="padding: 10px;overflow: hidden;">
        <div class="col-sm-12" style="border-bottom: 1px solid #cccccc"><h4>项目信息</h4></div>
        <div class="col-sm-12">
            <ul class="ul_flex">
                <li>
                    <ul>
                        <li><span>到店时间：</span>${customerInfo.arrivalTime}</li>
                        <li><span>建档人：</span>${customerInfo.archiving}</li>
                        <li><span>一级渠道：</span><select class="select_styles1" name="oneChannel"
                                                      id="oneChannel"></select></li>
                        <li><span>一级媒介：</span><select class="select_styles" name="oneMedium"
                                                      id="oneMedium"></select></li>
                    </ul>
                </li>
                <li>
                    <ul>
                        <li><span>咨询项目：</span><select class="select_styles"
                                                      name="appointmentPayService"
                                                      id="appointmentPayService"></select></li>
                        <li><span>消费能力：</span><select class="select_styles"
                                                      name="consumAbility"
                                                      id="consumAbility"></select></li>
                        <li><span>二级渠道：</span><select class="select_styles1" name="twoChannel"
                                                      id="twoChannel"></select></li>
                        <li><span>二级媒介：</span><select class="select_styles" name="twoMedium"
                                                      id="twoMedium"></select></li>
                    </ul>
                </li>
                <li>
                    <ul>
                        <li><span>TC：</span><select class="select_styles" name="fieldTc"
                                                    id="fieldTc"></select></li>
                        <li><span>职业：</span><select class="select_styles"
                                                    name="occupation"
                                                    id="occupation"></select></li>
                        <li><span>三级渠道：</span><select class="select_styles1" name="thrChannel"
                                                      id="thrChannel"></select></li>
                        <li><span>三级媒介：</span><select class="select_styles" name="thrMedium"
                                                      id="thrMedium"></select></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <ul style="padding-left: 10px;">
                <li>
                    <p>备注</p>
                    <textarea id="remarks" name="remarks" readOnly="readOnly" rows="6"
                                        style="width: 75%">${customerInfo.remarks}</textarea>
                </li>
                <li style="margin-top: 14px;">
                    <p>聊天记录</p>
                    <textarea id="content" name="content" readOnly="readOnly" rows="6" style="width: 75%">
                             ${reservationsInfo.content}
                    </textarea>
                </li>
            </ul>
        </div>
        <div class="col-sm-12">
            <div class="col-sm-12 clearfix">
                <button style="background: #30add1;color: white;width: 96px;" class="btn" type="button"
                        onclick="addVisitedInfoDlg.editSubmits()">保存
                </button>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/js/common/jsAddresss.js"></script>
<script src="${ctxPath}/static/js/common/jsChannel.js"></script>
<script src="${ctxPath}/static/js/common/jsMedium.js"></script>
<script>
    var oneChanneli = document.getElementById("oneChannelValue").value;
    var twoChanneli = document.getElementById("twoChannelValue").value;
    var thrChanneli = document.getElementById("thrChannelValue").value;
    var oneMediumi = document.getElementById("oneMediumValue").value;
    var twoMediumi = document.getElementById("twoMediumValue").value;
    var thrMediumi = document.getElementById("thrMediumValue").value;
    //初始化下拉渠道列表
    $.post(Feng.ctxPath + "/channel/getChannelsss", function (data) {
        ChannelList = data;
        channelInit('oneChannel', 'twoChannel', 'thrChannel');
    }, "json");
    //初始化下拉媒介列表
    $.post(Feng.ctxPath + "/medium/getMedium", function (data) {
        MediumList = data;
        mediumInit('oneMedium', 'twoMedium', 'thrMedium');
    }, "json");
    $(".modify").attr("readOnly", "true");
    $(".select_styles").attr("disabled", "disabled");
    $(".select_styles1").attr("disabled", "disabled");
</script>